import BaseComponent from "http://component.119safe.cn/component/base.js";

new class Side_Menu extends BaseComponent
{
	/*
	 * id		边栏菜单id，默认sidebar
	 */
	Properties = { "id": "sidebar" };

	InnerContainer = "ul.nav-list";

	render() { super.render(this.constructor.name); }

	Content = `
<div id="{id}" class="sidebar responsive ace-save-state compact" data-sidebar="true" data-sidebar-scroll="true" data-sidebar-hover="true">
	<script type="text/javascript">
		try { ace.settings.loadState('{id}') } catch (e) { }
	</script>

	<div>
		<ul class="nav nav-list">
		</ul>
	</div>

	<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
		<i id="sidebar-toggle-icon" class="ace-save-state ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
	</div>
</div>
`;
}().render();
